package com.rabbit.db.entity;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <h1>字典数据表</h1>
 *
 * @author zjw
 * @date 2022/1/21 9:26
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_dict_data")
public class DictData {

    /**
     * 详情主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long dataId;

    /**
     * 字典标签
     */
    private String dictLabel;

    /**
     * 字典键值
     */
    private String dictValue;

    /**
     * 字典类型
     */
    private String dictType;

    /**
     * 是否默认 (1是 0否)
     */
    private Boolean isDefault;

    /**
     * 是否启用 (1启用 0禁用)
     */
    private Boolean isEnabled;

    /**
     * 字典排序
     */
    private Integer orderNum;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;
}